Optimal. Leaf size=21 \[ \frac {\left (a \left (b x^n\right )^p\right )^q}{n p q} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {1971, 30}
\begin {gather*} \frac {\left (a \left (b x^n\right )^p\right )^q}{n p q} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 1971
Rubi steps
\begin {align*} \int \frac {\left (a \left (b x^n\right )^p\right )^q}{x} \, dx &=\left (x^{-n p q} \left (a \left (b x^n\right )^p\right )^q\right ) \int x^{-1+n p q} \, dx\\ &=\frac {\left (a \left (b x^n\right )^p\right )^q}{n p q}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 21, normalized size = 1.00 \begin {gather*} \frac {\left (a \left (b x^n\right )^p\right )^q}{n p q} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.05, size = 22, normalized size = 1.05
method | result | size |
gosper | \(\frac {\left (a \left (b \,x^{n}\right )^{p}\right )^{q}}{n p q}\) | \(22\) |
derivativedivides | \(\frac {\left (a \left (b \,x^{n}\right )^{p}\right )^{q}}{n p q}\) | \(22\) |
default | \(\frac {\left (a \left (b \,x^{n}\right )^{p}\right )^{q}}{n p q}\) | \(22\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.38, size = 25, normalized size = 1.19 \begin {gather*} \frac {a^{q} b^{p q} {\left ({\left (x^{n}\right )}^{p}\right )}^{q}}{n p q} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 27, normalized size = 1.29 \begin {gather*} \frac {e^{\left (n p q \log \left (x\right ) + p q \log \left (b\right ) + q \log \left (a\right )\right )}}{n p q} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 37 vs.
\(2 (14) = 28\).
time = 0.17, size = 37, normalized size = 1.76 \begin {gather*} \begin {cases} \log {\left (x \right )} & \text {for}\: q = 0 \wedge \left (n = 0 \vee q = 0\right ) \wedge \left (p = 0 \vee q = 0\right ) \\\left (a b^{p}\right )^{q} \log {\left (x \right )} & \text {for}\: n = 0 \\a^{q} \log {\left (x \right )} & \text {for}\: p = 0 \\\frac {\left (a \left (b x^{n}\right )^{p}\right )^{q}}{n p q} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.87, size = 21, normalized size = 1.00 \begin {gather*} \frac {\left (\left (b x^{n}\right )^{p} a\right )^{q}}{n p q} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.05 \begin {gather*} \int \frac {{\left (a\,{\left (b\,x^n\right )}^p\right )}^q}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________